package org.rguess.patterns.responsibility.builder;

public class BuilderApp {
	public static void main(String[] args) {
		// 创建摩托车
		MotorCycleBuilder builder1 = new MotorCycleBuilder();
		Vehicle director1 = new Vehicle(builder1);
		// 创建小汽车
		CarBuilder builder2 = new CarBuilder();
		Vehicle director2 = new Vehicle(builder2);
		director1.construct();
		director2.construct();
		// 显示创建产品
		builder1.shop.show();
		builder2.shop.show();
	}
}
